package com.monitor.tool;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

import com.monitor.methods.Method;

public class Pooler {

	private static Map<String, Method> methodMap = new HashMap<String, Method>();
	
	public static void registerMethod(String name, Method instance){
		methodMap.put(name, instance);
	}
	
	public static Set<String> getMethodsNames(){
		return methodMap.keySet();
	}
	
	public static Method getMethodInstance(String name){
		return methodMap.get(name);
	}
}
